<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" type="text/css" href="../../extSDK/resources/css/ext-all.css" />
	<script type="text/javascript" src="../../extSDK/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="../../extSDK/ext-core-debug.js"></script>
	<script type="text/javascript" src="../../extSDK/ext-all-debug.js"></script>
	<script type="text/javascript" src="./TreeStoreLoader.js"></script>
	<link rel="stylesheet" type="text/css" href="../../extModules/resources/menuTree/menuTree.css" />
	<script type="text/javascript" src="../../extSDK/thirdPart/My97DatePicker/WdatePicker.js"></script>

<title>测试页</title>
</head>
    <body>
	<div id="div1"></div>

<input type="text" id="test1" onfocus='WdatePicker()' ><br>
<input type="button" value="tttt" onclick="alert(document.getElementById('test1').value)">

<div id='panelcontainer' style='height:500px;width:500px'></div>
        <script type="text/javascript">
Ext.onReady(new function() {
WdatePicker({eCont:'div1',onpicked:function(dp){alert('你选择的日期是:'+dp.cal.getDateStr())}});
    var panel = new Ext.Panel({
        title: 'ddd',
        renderTo: 'panelcontainer',
        height: 500,
        layout: 'border',
        items: [{
            region: 'north',
            xtype: 'panel',
            html: 'North'
        },{
            region: 'west',
            xtype: 'panel', 
            split: true,
            width: 200,
            html: 'West'
        },{
            region: 'center',
            xtype: 'panel',
            html: "<input type=text name=test onfocus='WdatePicker()' >"
        },{
            region: 'east',
            xtype: 'panel',
            split: true,
            width: 200,
            html: 'East'
        },{
            region: 'south',
            xtype: 'panel',
            html: 'South'
        }]
    });
	});
            
        </script>
        
    </body>
</html>